package cn.rc.rcsystem.feign;

import cn.rc.rcsystem.domain.CarRentals;
import cn.rc.rcsystem.fallback.LeaseServiceFallbackFactory;
import cn.rc.rcsystem.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="service-lease",path = "/carRental",contextId = "leaseService",fallbackFactory = LeaseServiceFallbackFactory.class )
public interface LeaseService {
    @RequestMapping(value = "/cargrounding",method = RequestMethod.POST)
    JSONResult cargrounding(@RequestBody CarRentals carRental);
}
